package com.yg.ssm.hello.serv;

import com.yg.ssm.hello.dao.TempDao;
import com.yg.ssm.hello.model.DemoModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/25.
 */
@Service("ts")
public class TempService {
    @Autowired
    public TempDao tempDao;

    public void setTempDao(TempDao tempDao) {
        this.tempDao = tempDao;
    }

    public List<DemoModel> query() {
        return tempDao.getDemoModel();
    }
}
